package com.njtoyo.taxi.admin.service.local_service.commodity;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.rest.presenter.local_service.commodity.IsPresentedPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.commodity.isPresented.IsPresentedAddWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.commodity.isPresented.IsPresentedPageWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.commodity.isPresented.IsPresentedUpdateWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

public interface IsPresentedService {
    /**
     * 赠送商品列表
     *
     * @param adminUser
     * @param wrapper
     * @return
     */
    RestResult<Page<IsPresentedPresenter>> getPage(AdminUser adminUser, IsPresentedPageWrapper wrapper);

    /**
     * 赠送商品添加
     *
     * @param adminUser
     * @param wrapper
     * @return
     */
    RestResult add(AdminUser adminUser, IsPresentedAddWrapper wrapper);

    /**
     * 赠送商品修改
     *
     * @param id
     * @param wrapper
     * @return
     */
    RestResult update(Long id, IsPresentedUpdateWrapper wrapper);

    /**
     * 赠送商品删除
     *
     * @param id
     * @return
     */
    RestResult delete(Long id);

}
